import unittest
from demo003.test001 import Jsq
class TestJsqCase(unittest.TestCase):
    def setUp(self):
        pass

    def tearDown(self):
        pass
    def testJiang(self):
        result = Jsq.jiang(3,1)
        self.assertEqual(result,2)

if __name__ =="__main__":
        # 得到测试用例套件
        suite = unittest.TestSuite()
        # 添加测试用例
        suite.addTest(Jsq("testJiang"))
        # 得到执行者对象
        # fp = open("test.txt","wb")
        runner = unittest.TextTestRunner()
        runner.run(suite)